package com.example.lenovo.mywechat.temp.chat_page;

import com.google.protobuf.ByteString;

public class Msg {
//    public static final int TYPE_RECEIVED = 0;
//    public static final int TYPE_SEND = 1;

    int group_id;
    long creation_time;
    int user_id;
    ByteString avatar;
    String content_type;
    ByteString content;

    public Msg(int group_id, long creation_time, int user_id, ByteString avatar, String content_type, ByteString content){
        this.group_id = group_id;
        this.creation_time = creation_time;
        this.user_id = user_id;
        this.avatar = avatar;
        this.content_type = content_type;
        this.content = content;
    }

    public ByteString getAvatar() {
        return avatar;
    }

    public Msg setAvatar(ByteString avatar) {
        this.avatar = avatar;
        return this;
    }

    public int getGroup_id() {
        return group_id;
    }

    public Msg setGroup_id(int group_id) {
        this.group_id = group_id;
        return this;
    }

    public long getCreation_time() {
        return creation_time;
    }

    public Msg setCreation_time(long creation_time) {
        this.creation_time = creation_time;
        return this;
    }

    public int getUser_id() {
        return user_id;
    }

    public Msg setUser_id(int user_id) {
        this.user_id = user_id;
        return this;
    }

    public String getContent_type() {
        return content_type;
    }

    public Msg setContent_type(String content_type) {
        this.content_type = content_type;
        return this;
    }

    public ByteString getContent() {
        return content;
    }

    public Msg setContent(ByteString content) {
        this.content = content;
        return this;
    }
}
